#ifndef _CONSUL_CLIENT_H_
#define _CONSUL_CLIENT_H_

#include <vector>
#include <string>
#include "consul/service_info.h"

class ConsulClient {
public:
    ConsulClient();
    // ~ConsulClient();
    ConsulClient& setConsulIp(std::string);
    ConsulClient& setConsulPort(int);

    bool registerService(const ServiceInfo& serverInfo);
    // bool deregisterService();

    bool discoverServices(std::string serviceName, std::vector<ServiceInfo>& services);
private:
    std::string consulIp;
    int consulPort;
};

#endif /* _CONSUL_CLIENT_H_ */
